﻿<!--TO READ THIS HELP FILE, RIGHT-CLICK ON THE FILE NAME IN THE
    SOLUTION EXPLORER PANE AND SELECT "VIEW IN BROWSER"-->

<html><head><title>Speech Recognition Sample</title></head><body><h1>Speech Recognition Sample</h1><div id="mainSection"><div id="mainBody"><div id="allHistory" class="saveHistory" onsave="saveAll()" onload="loadAll()"><font color="DarkGray"></font><p /></div><div class="introduction"><p><h3 class="procedureSubHeading">To get samples and instructions for installing them</h3><div class="subSection"><ul><li><p>Do one or more of the following:</p><ul><li><p>On the <span class="ui">Help</span> menu, click <span class="ui">Samples</span>.</p><p>The Readme displays information about samples.</p></li>
    <li>
        <p>
            Visit the Visual Studio 2010 Samples Web site. The most recent versions of 
            samples are available there. 
        </p>
    </li>
    <li>
        <p>
            Locate samples on the computer on which Visual Studio is installed. By default, 
            samples and a Readme file are installed in <span class="placeholder">drive</span>:\Program 
            Files\Microsoft Visual Studio 10\Samples. For Express editions of Visual Studio, 
            all samples are located online.</p>
    </li>
    <li>
        <p>
            For Samples to build successfully, an ink enabled operating system is required.</p>
    </li>
</ul>
</ul></li></ul><p>For more information, see <mshelp:link keywords="e121a9c2-b35b-4b3f-8cba-30edd84c835f" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">Locating Sample Files</mshelp:link>.</p></div></p><p><div class="alert"><table width="100%"     </table></div></p></div><h3 class="procedureSubHeading">To view the sample documentation</h3><div class="subSection"><ol><li><p>In <span class="ui">Solution Explorer</span>, double-click the <span class="ui">Documentation</span> folder.</p></li><li><p>If you are using Visual Basic Express Edition, right-click <span class="ui">ReadMe.htm</span> in the <span class="ui">Documentation</span> folder and then click <span class="ui">View in Browser</span>. If you are using another version of Visual Basic, double-click <span class="ui">ReadMe.htm</span> in the <span class="ui">Documentation</span> folder. </p></li></ol></div><h1 class="heading"><span   style="cursor:default;"   tabindex="0">Demonstrates</span></h1><div id="demonstratesSection" class="section" name="collapseableSection" style=""><p>This sample demonstrates the capabilities of the Speech API (SAPI), which is included with Microsoft Windows XP Tablet PC Edition 2005. SAPI is a rich and similar enough to the handwriting recognition APIs that it can be easily learned by developers programming for Windows XP Tablet PC Edition 2005. For more information about handwriting recognition, see <mshelp:link keywords="614971a8-2b56-40d4-abb6-aba5ded01883" tabindex="0" xmlns:mshelp="http://msdn.microsoft.com/mshelp">About Handwriting Recognition</mshelp:link>.</p><p>You must create an interop wrapper for the SAPI DLL. You can do this by adding a reference, clicking the <span class="ui">COM</span> tab, and then selecting <span class="ui">Microsoft Speech Object Library</span>. After you do this and the <span class="keyword">SpeechLib</span> namespace is imported, developing for SAPI is similar to developing for handwriting recognition by using the Tablet PC Platform SDK. A recognizer is created (in this case, an in-process <span class="keyword">SpInProcRecognizer</span>) and generates a context (of type <span class="keyword">SpInProcRecoContext</span>) that is associated with the specific type of recognition. Events associated with the recognition process include the <span class="keyword">Hypothesis</span>, <span class="keyword">Recognition</span>, and <span class="keyword">EndStream</span> events. A large number of <span class="keyword">Hypothesis</span> events will be generated, although only one <span class="keyword">Recognition</span> and <span class="keyword">EndStream</span> event will be associated with a particular recognition attempt.</p><p>The sample provides a standard file dialog box to open a user-supplied .wav file. The sample application attempts to recognize the speech in this file, and the results are added to a <span class="keyword">RichTextEdit</span> box. The technique for iterating over alternative possibilities is also shown, although that output is directed to the Debug console. </p><div id="sectionSection0" class="seeAlsoNoToggleSection"><h3 class="subHeading"></h3><div class="subsection"><h4 class="subHeading">This sample requires that the following be installed:</h4><div class="subsection"><ul><li><p>Visual Studio </p></li><li><p>Tablet Enabled Version of Windows</p></li></ul></div></div></div></div></div><div id="footer"><div class="footerLine"></div><!--<include item="copyrightStatement"/>--><A NAME="feedback"></A><span id="fb" class="feedbackcss" /> 
             
                
               
                
                
               
               
               
              
                
               
              
               
               
               
         </div></div></body></html>
